-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Enforce deprecation of groupby.quantile supporting bool dtype #57744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just some changes seem to be unrelated, but if it's something pending that you're addressing here, fine with me.
with pytest.raises(TypeError, match=msg): | ||
method(*args) | ||
elif dtype is object: | ||
warn = FutureWarning if groupby_func == "fillna" else None | ||
warn_msg = "SeriesGroupBy.fillna is deprecated" | ||
with tm.assert_produces_warning(warn, match=warn_msg): | ||
result = method(*args) | ||
with tm.assert_produces_warning(warn, match=warn_msg): | ||
expected = expected_method(*args) | ||
result = method(*args) | ||
expected = expected_method(*args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are not related to quantile with bool, right? I'm a bit confused here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea - this was left over from #57109; the fillna
method no longer exists on groupby.
Thanks @rhshadrach |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Ref: #53975